package cn.com.roy.thread.t3_2_1.jointest1;

public class Test {

    public static void main(String[] args) {
        Thread myThread = new Thread(new Runnable() {
            public void run() {
                int secondValue =  (int) (Math.random() * 10000);
                System.out.println(secondValue);
                try {
                    Thread.sleep(secondValue);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        myThread.start();

        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
    }

}
